import { defineStore } from 'pinia'

export const userInfo = defineStore('userInfo', {
  state: () => {
    return {
      age: 28
    }
  },
  getters: {
    double() {
      return this.age * 2
    }
  },
  actions: {
    increase(num) {
      this.age = num
    }
  }
})